// Package
package ClassFrame;

// Class

public class CDisplayObject {
    
    public static final int STATE_STAND = 0;
    
    // Var
    public int x, y;
    public boolean Visible;
    public boolean IsFocus = false;
    protected int MotionState = STATE_STAND;

    // Constructor
    public CDisplayObject() {
        x = y = 0;
        Visible = true;
    }

    // Set Position
    public void Move(int x, int y) {
        this.x = x;
        this.y = y;
    }

    // Show
    public void Show() {
        Visible = true;
    }

    // Hide
    public void Hide() {
        Visible = false;
    }

    public void OnKeyUp(int KeyCode) {
    }

    public void OnKeyDown(int KeyCode) {
    }

    public void pointerPressed(int x, int y) {
    }

    public void pointerDragged(int x, int y) {
    }

    public void pointerReleased(int x, int y) {
    }

    public void SetFocus(boolean foc) {
    }
}
